"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var test_grpc_pb_1 = require("./gen/test_grpc_pb");
var grpc = require("@grpc/grpc-js");
var test_pb_1 = require("./gen/test_pb");
var client = new test_grpc_pb_1.TestClient("localhost:3333", grpc.credentials.createInsecure());
var testReq = new test_pb_1.TestReq();
testReq.setName("client");
var call = client.sayTest();
call.on("data", function (data) {
    console.log("data", data);
    call.write(testReq);
});
call.write(testReq);
// client.sayTest(testReq, (err, message) => {
//   console.log(message.getName());
// });
